#pragma once
#include "Model.h"
#include "Transform.h"

class Cube :
	public Model
{
public:
	Cube();
	virtual ~Cube();

	virtual void Update(float dt);
	virtual void Draw(ID3DXSprite* sprite, D3DXMATRIX& view, D3DXMATRIX& proj);

protected:
	void BuildVertexBuffer();
	void BuildIndexBuffer();

private:
	static const int NB_VERTICES = 24;
	static const int NB_FACES = 12;

	IDirect3DTexture9* mCrateTex;
	D3DXHANDLE mhTex;

	float mRotAngleX;
	float mRotAngleY;
	float mRotAngleZ;
};

